//
//  zhuceView.m
//  UI_豆瓣项目
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 关业达. All rights reserved.
//

#import "zhuceView.h"

@implementation zhuceView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self xiangqing];
    }
    return self;
}

- (void)xiangqing
{
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 100, 100, 30)];
//    self.nameLabel.backgroundColor = [UIColor redColor];
    self.nameLabel.text = @"用户名:";
    [self addSubview:self.nameLabel];
    [_nameLabel release];
    
    self.codeLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 150, 100, 30)];
    self.codeLabel.text = @"密码:";
    [self addSubview:self.codeLabel];
    [_codeLabel release];
    
    self.isCodeLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 200, 100, 30)];
    self.isCodeLabel.text = @"确认密码:";
    [self addSubview:self.isCodeLabel];
    [_isCodeLabel release];
    
    self.mailboxLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 250, 100, 30)];
    self.mailboxLabel.text = @"邮箱:";
    [self addSubview:self.mailboxLabel];
    [_mailboxLabel release];
    
    self.phoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 300, 100, 30)];
    self.phoneLabel.text = @"联系方式:";
    [self addSubview:self.phoneLabel];
    [_phoneLabel release];
    
    self.nameTF = [[UITextField alloc] initWithFrame:CGRectMake(130, 100, 200, 30)];
    self.nameTF.borderStyle = UITextBorderStyleRoundedRect;
    self.nameTF.placeholder = @"请输入用户名";
    self.nameTF.clearButtonMode = YES;
    [self addSubview:self.nameTF];
    [_nameTF release];
    
    self.codeTF = [[UITextField alloc] initWithFrame:CGRectMake(130, 150, 200, 30)];
    self.codeTF.borderStyle = UITextBorderStyleRoundedRect;
    self.codeTF.placeholder = @"请输入密码";
    self.codeTF.clearButtonMode = YES;
    [self addSubview:self.codeTF];
    [_codeTF release];
    
    self.iscodeTF = [[UITextField alloc] initWithFrame:CGRectMake(130, 200, 200, 30)];
    self.iscodeTF.borderStyle = UITextBorderStyleRoundedRect;
    self.iscodeTF.placeholder = @"再次输入密码";
    self.iscodeTF.clearButtonMode = YES;
    [self addSubview:self.iscodeTF];
    [_iscodeTF release];
    
    self.mailboxTF = [[UITextField alloc] initWithFrame:CGRectMake(130, 250, 200, 30)];
    self.mailboxTF.borderStyle = UITextBorderStyleRoundedRect;
    self.mailboxTF.placeholder = @"请输入邮箱";
    self.mailboxTF.clearButtonMode = YES;
    [self addSubview:self.mailboxTF];
    [_mailboxTF release];
    
    self.phoneTF = [[UITextField alloc] initWithFrame:CGRectMake(130, 300, 200, 30)];
    self.phoneTF.borderStyle = UITextBorderStyleRoundedRect;
    self.phoneTF.placeholder = @"请输入联系方式";
    self.phoneTF.clearButtonMode = YES;
    [self addSubview:self.phoneTF];
    [_phoneTF release];

}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
